<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="http://www.baidu.com" method="get">
    <!--maxlength最大字符长度-->
    用户名:<input type="text" name="username" maxlength="6" value="123..." readonly><br>
    密码:<input type="password" name="password" value="123456..."><br>
    性别:<input type="radio" name="gender" value="m" id="r1"><label for="r1">男</label>
    <input type="radio" name="gender" checked value="w" id="r2"><label for="r2">女</label><br>
    <!--使用单选框时一定要添加value属性,否则返回on
    checked是默认选中-->
    兴趣爱好:<input type="checkbox" name="hobby" value="cy" id="h1"><label for="h1">抽烟</label>
    <input type="checkbox" name="hobby" value="hj" id="h2"><label for="h2">喝酒</label>
    <input type="checkbox" name="hobby" checked value="tt" id="h3"><label for="h3">烫头</label><br>
    生日:<input type="date" name="birthday"><br>
    照片:<input type="file" name="pic"><br>
    所在地:
    <select name="city">
        <option value="bj">北京</option>
        <option value="sh">上海</option>
        <option value="sz" selected>深圳</option>
    </select><br>
    <!--value设置提交的内容  select默认选中-->
    <input type="submit" value="登录">
</form>
</body>
</html>